package model.util;

import java.util.Hashtable;

import automata.State;

public class ExpressionSet {
	
	private int logicExp = 1; // number of logic expressions in conditional FSA
	private int mathExp = 1; // number of math expressions in conditional FSA
	
	//private Hashtable<State, ExpressionSet> statesExp = new Hashtable<State, ExpressionSet>(); // each final state has one expression associed 

	//private ArrayList<String> logicOperators = new ArrayList<String>(); // array of logic operators of logic expressions in cond

	//private ArrayList<String> mathOperators = new ArrayList<String>(); // array of math operators of math expressions in cond

	//private ArrayList<MathExpression> mathExpressions = new ArrayList<MathExpression>();
	
	private Hashtable<State,MathExpression> expressions = new Hashtable<State,MathExpression>(); // each fineal state has one expression associed 

	/*public boolean addLogicOperator(String logicOp)
	{
		if(logicOp.equals("and") || logicOp.equals("or"))
			logicOperators.add(logicOp);
		else 
			return false;
		return true;
	}*/
	
	public void addExpression( State s,MathExpression m)
	{
		expressions.put(s,m);
	}
	
	
}
